package com.zy.datareceiver.binsess.monitoring.param.query;

import java.util.HashMap;

public class PointType {
    private Integer pointId;
    private String pointName;
    private Integer deviceId;
    private String deviceName;

    public Integer getPointId() {
        return pointId;
    }

    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }

    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = castNameMap.getOrDefault(pointName,pointName);
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    private HashMap<String,String> castNameMap = new HashMap<>();
    /**
     * 实在是没有办法获取这个数据了，再此写死，这个地方只是为了首页大屏显示所用的，要是大屏更改了，这个地方需要添加值
     * */
    PointType(){
        castNameMap.put("应变计","应变");
        castNameMap.put("位移计","位移");
        castNameMap.put("振动计","振动");
        castNameMap.put("温湿度","温湿度");
        castNameMap.put("静力水准","静力水准");
    }
}
